// 通用的响应函数
const sendResponse = (res, code, data = {}, msg = '') => {
  res.status(code).json({
    code: String(code),
    data: data,
    msg: msg
  })
}
module.exports = { sendResponse }
